const os = require('os')
const { contextBridge, ipcRenderer } = require('electron')

contextBridge.exposeInMainWorld('electronAPI', {
  platform: os.platform(),
  showNotification: (msg) => ipcRenderer.invoke('showNotification', msg),
  setTheme: (themeName) => ipcRenderer.invoke('setTheme', themeName),
})
